package com.yc.projects.pro1_mail.test;

import com.yc.projects.pro1_mail.config.MailConfig;
import com.yc.projects.pro1_mail.service.EmailService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.mail.javamail.JavaMailSenderImpl;

public class App {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MailConfig.class);

        JavaMailSenderImpl emailService = (JavaMailSenderImpl) context.getBean("mailSender");

    }
}
